import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./directive/index";
import MyPlugin from "./plugIn/index";
import confirm from "./utils/confirm";

Vue.use(MyPlugin);

Vue.config.productionTip = false;
Vue.prototype.$confirm = confirm;
// 全局混入（会影响所有的组件，慎用）
// Vue.mixin({
//   created() {
//     console.log('我是全局mixin输出的')
//   }
// })

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
